<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/meta" /}
        {include file="public/link" /}
    </head>
    <body data-type="index" class="theme-white">
        <div class="am-g tpl-g">
            {include file="public/header" /}
            {include file="public/left" /}
            {include file="public/content_top" /}
            <ol class="am-breadcrumb">
                <li><a href="../home/index.html" class="am-icon-home">首页</a></li>
                <li><a href="#">角色管理</a></li>
                <li class="am-active">角色列表</li>
                <li><a href="../admins/edit_role.html">添加角色</a></li>
            </ol>
            <div class="widget am-cf">
                <hr data-am-widget="divider" class="am-divider am-divider-default"/>
                <div class="widget-body widget-body-lg am-fr">
                    <div class="am-scrollable-horizontal">
                        <table class="{$table}">
                            <thead>
                                <tr>
                                    <th>信息ID</th>
                                    <th>管理员ID</th>
                                    <th>管理员名称</th>
                                    <th>修改时间</th>
                                    <th>操作时间</th>
                                </tr>
                            </thead>
                            <tbody id="list">
                                {foreach $list as $val}
                                <tr class="text-c">
                                    <td>{$val.id}</td>
                                    <td>{$val.uid}</td>
                                    <td>{$val.admin.name}</td>
                                    <td>{$val.desc}</td>
                                    <td>{$val.time|date="Y-m-d H:i:s",###}</td>
                                </tr>
                                {/foreach}
                            </tbody>
                        </table>
                        <div class="am-pagination-left">{$page}</div>
                    </div>
                </div>
            </div>
        </div>
        {include file="public/foot" /}
        <script type="text/javascript">
            $(function () {
                var nav = $('.left-sidebar li.sidebar-nav-link');
                nav.removeClass("active");
                        nav.eq({$a}).find('ul').show();
                        nav.eq({$a}).find('ul li').eq({$b}).find('a').addClass('active');
            });

        </script>
    </body>

</html>